package com.wlps.vo.sendcenter.inoutform;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author ZWYZY
 * @since 2020/8/10
 */
@ApiModel(value = "入库/出库商品显示vo")
@Data
public class CommodityAndWarehouseVo {
////    @ApiParam(value = "商品对象")
//    private Commodity commodity;
//    @ApiParam(value = "库房设置对象，如缺货量")
//    private CommodityWarehouse commodityWarehouse;


    @ApiModelProperty(value = "商品编号")
    private Long commodityCode;

    @ApiModelProperty(value = "一级分类名称")
    private String firstClassification;

    @ApiModelProperty(value = "二级分类名称")
    private String secondClassification;

    @ApiModelProperty(value = "计量单位")
    private String unitofmeasurement;

    @ApiModelProperty(value = "单价")
    private Double unitPrice;

    @ApiModelProperty(value = "金额")
    private Double amount;

    @ApiModelProperty(value = "折扣")
    private Double discount;

    @ApiModelProperty(value = "商品名称")
    private String productName;

    @ApiModelProperty(value = "商品说明")
    private String productDesccription;

    @ApiModelProperty(value = "库存量")
    private Long inventory;

    @ApiModelProperty(value = "成本价")
    private Double costPrice;

    @ApiModelProperty(value = "型号")
    private String model;

    @ApiModelProperty(value = "供应商")
    private String supplier;

    @ApiModelProperty(value = "厂商")
    private String vendor;

    @ApiModelProperty(value = "可否退货")
    private Boolean isReturn;

    @ApiModelProperty(value = "保质期限")
    private Date shelfLife;

    @ApiModelProperty(value = "可否换货")
    private Boolean isExchange;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "商品最大储量")
    private Long maximumCommodity;

    @ApiModelProperty(value = "缺货量")
    private Long outOfStockNumber;

    @ApiModelProperty(value = "商品当前储量")
    private Long currentNumber;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//数据库导出页面时json格式化
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
